package com.lanhe.weichatTransferRec.service.impl;

import java.util.List;

import com.lanhe.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lanhe.weichatTransferRec.mapper.LhOrdersWeichatTransferRecMapper;
import com.lanhe.weichatTransferRec.domain.LhOrdersWeichatTransferRec;
import com.lanhe.weichatTransferRec.service.ILhOrdersWeichatTransferRecService;

/**
 * 微信当日订单状态记录Service业务层处理
 * 
 * @author tianliang
 * @date 2024-02-29
 */
@Service
public class LhOrdersWeichatTransferRecServiceImpl implements ILhOrdersWeichatTransferRecService 
{
    @Autowired
    private LhOrdersWeichatTransferRecMapper lhOrdersWeichatTransferRecMapper;

    /**
     * 查询微信当日订单状态记录
     * 
     * @param transferRecId 微信当日订单状态记录主键
     * @return 微信当日订单状态记录
     */
    @Override
    public LhOrdersWeichatTransferRec selectLhOrdersWeichatTransferRecByTransferRecId(Integer transferRecId)
    {
        return lhOrdersWeichatTransferRecMapper.selectLhOrdersWeichatTransferRecByTransferRecId(transferRecId);
    }

    /**
     * 查询微信当日订单状态记录列表
     * 
     * @param lhOrdersWeichatTransferRec 微信当日订单状态记录
     * @return 微信当日订单状态记录
     */
    @Override
    public List<LhOrdersWeichatTransferRec> selectLhOrdersWeichatTransferRecList(LhOrdersWeichatTransferRec lhOrdersWeichatTransferRec)
    {
        return lhOrdersWeichatTransferRecMapper.selectLhOrdersWeichatTransferRecList(lhOrdersWeichatTransferRec);
    }

    /**
     * 新增微信当日订单状态记录
     * 
     * @param lhOrdersWeichatTransferRec 微信当日订单状态记录
     * @return 结果
     */
    @Override
    public int insertLhOrdersWeichatTransferRec(LhOrdersWeichatTransferRec lhOrdersWeichatTransferRec)
    {

        return lhOrdersWeichatTransferRecMapper.insertLhOrdersWeichatTransferRec(lhOrdersWeichatTransferRec);
    }

    /**
     * 修改微信当日订单状态记录
     * 
     * @param lhOrdersWeichatTransferRec 微信当日订单状态记录
     * @return 结果
     */
    @Override
    public int updateLhOrdersWeichatTransferRec(LhOrdersWeichatTransferRec lhOrdersWeichatTransferRec)
    {
        return lhOrdersWeichatTransferRecMapper.updateLhOrdersWeichatTransferRec(lhOrdersWeichatTransferRec);
    }

    /**
     * 批量删除微信当日订单状态记录
     * 
     * @param transferRecIds 需要删除的微信当日订单状态记录主键
     * @return 结果
     */
    @Override
    public int deleteLhOrdersWeichatTransferRecByTransferRecIds(Integer[] transferRecIds)
    {
        return lhOrdersWeichatTransferRecMapper.deleteLhOrdersWeichatTransferRecByTransferRecIds(transferRecIds);
    }

    /**
     * 删除微信当日订单状态记录信息
     * 
     * @param transferRecId 微信当日订单状态记录主键
     * @return 结果
     */
    @Override
    public int deleteLhOrdersWeichatTransferRecByTransferRecId(Integer transferRecId)
    {
        return lhOrdersWeichatTransferRecMapper.deleteLhOrdersWeichatTransferRecByTransferRecId(transferRecId);
    }
}
